import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { NgZorroIopModule } from 'ng-zorro-iop';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';

import { TemplateListComponent } from './list/template-list.component';

const TEMP_ROUTES: Routes = [
  {
    path: '',
    component: TemplateListComponent,
    data: {
      breadcrumb: '模板列表',
      hasRegion: true
    }
  }
];

@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(TEMP_ROUTES),
    FormsModule,
    ReactiveFormsModule,
    NgZorroAntdModule,
    NgZorroIopModule
  ],
  declarations: [
    TemplateListComponent
  ]
})
export class TemplateModule { }
